package com.ddz.shortcut

import android.accessibilityservice.AccessibilityService
import android.view.accessibility.AccessibilityEvent
import android.view.accessibility.AccessibilityNodeInfo
import android.view.accessibility.AccessibilityWindowInfo

interface JKShortcutCore {
    //装载模块
    fun loadDisposedModule(modules:ArrayList<JKDisposedModule>)
    //设置监听
    fun setListener(listener: JKShortcutListener)
    //设置事件执行间隔
    fun setEventIntervalTimeMillis(interval:Long)
    //设置点击之后的间隔
    fun setClickIntervalTimeMillis(interval:Long)
    //设置同一个页面执行模块最大次数
    fun setSameNameExeMaxCount(count:Int)
    //最大递归层次
    fun setMaxRecursionTreeLayer(layer:Int)
    //无障碍事件分发
    fun event(event: AccessibilityEvent?)
    //是否需要处理
    fun hasNeedDisposed(viewInfo: AccessibilityNodeInfo,disposedModule: ArrayList<JKDisposedModule>):HasNeedDisposed?
    //是否需要处理
    fun hasNeedDisposed(viewInfo: AccessibilityNodeInfo, disposedSingleModule: JKDisposedModule):HasNeedDisposed?
    //利用模块处理
    fun disposed(viewInfo: AccessibilityNodeInfo, disposedSingleModule: JKDisposedModule)
    
}